package com.lanchetech.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lanchetech.bean.request.ActivityReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.BaseResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.vo.ActivityVo;
import com.lanchetech.entity.Activity;

public interface ActivityService extends IService<Activity> {

    /**
     * 查看商家活动列表分页
     * @param req
     * @return
     */
    ResultData<BasePageResp<ActivityVo>> getPage(ActivityReq req);

    /**
     * 新增活动
     * @param activity
     * @return
     */
    void editActivity(ActivityVo activity) throws Exception;

    /**
     * 删除活动
     * @param id
     * @return
     */
    BaseResp deleteActivity(Long id);

    /**
     * 查看详情
     * @param id
     * @return
     */
    ResultData<ActivityVo> getDetail(Long id);

    /**
     * 开启/关闭活动
     * @param id
     * @return
     */
    BaseResp onOrOffStatus(Long id);
}
